import { createRouter, createWebHistory } from 'vue-router'


const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      redirect:'/simpleCharts',
      component: () => import('../views/Layout.vue'),
      children: [
        {
          path: 'simpleCharts',
          name:'simpleCharts',
          component: () => import('../views/SimpleCharts.vue')
        },
        {
          path: 'multipleTables',
          name:'multipleTables',
          component: () => import('../views/MultipleTables.vue')
        }
      ]
    }
  ]
})

export default router
